<!DOCTYPE html>
<html lang="zh_CN">
	<!--begin::Head-->
	<head>
		<title>温馨提示</title>
        <meta name="description" content="{$seo.description|default=''}" />
        <meta name="keywords" content="{$seo.keywords|default=''}" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta charset="utf-8" />
        <link rel="shortcut icon" href="/favicon.ico" />
		<!--所有页面都必须依赖的css文件-->
		{:load_assets('base','css')}
		{:load_module_assets('auth','css')}
        <link rel="stylesheet" href="__ADMIN__/css/login/auth.css">
        <style>
           
        </style>
	</head>
	<!--end::Head-->
	<!--begin::Body-->
	<body id="kt_body" class="page-loading app-default">
		{include file="admin@public/pageloading"}
		<!--begin::Root-->
		<div class="" id="kt_app_root">
			<div class="auth-one-bg-position auth-one-bg" id="auth-particles">
				<div class="bg-overlay"></div>
				<div class="shape">
					<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1440 120">
						<path d="M 0,36 C 144,53.6 432,123.2 720,124 C 1008,124.8 1296,56.8 1440,40L1440 140L0 140z"></path>
					</svg>
				</div>
			</div>
			<div class="d-flex flex-column flex-column-fluid pt-20" style="position:relative;z-index:2;">
				<div class="d-flex flex-center text-center flex-column flex-column-fluid p-5 mt-20">
					<div class="card card-flush w-100 w-md-650px py-5">
                        <div class="card-body py-15 py-lg-20">
                            <!--begin::Title-->
                            {eq name="code" value="1"}
                            <div class="symbol  symbol-sm-65px symbol-md-75px symbol-circle mb-5">
                                <span class="symbol-label"><i class="fas fa-check-circle text-success fs-3hx"></i></span>
                            </div>
                            {else/}
                            <div class="symbol symbol-sm-65px symbol-md-75px symbol-circle mb-5">
                                <span class="symbol-label"><i class="fas fa-times-circle text-danger fs-3hx"></i></span>
                            </div>
                            {/eq}
                            <h1 class="fw-bolder text-dark mb-5 fs-3">{$msg|default=''}</h1>
                            <!--end::Title-->
                            <!--begin::Text-->
                            <div class="fw-semibold fs-6 text-gray-500 mb-7"><p class="error-text">页面将自动 <a id="href" class="text-hover-success text-primary" href="{$url|default=''}">跳转</a>，等待时间： <b id="wait" class="text-danger"><?php echo($wait);?></b>秒</p></div>
                            <!--end::Text-->
                            <!--begin::Illustration-->
                            <!--end::Illustration-->
                            <!--begin::Link-->
                            <div class="mb-0">
                                <a href="{$url|default=''}" class="btn btn-sm btn-success"><i class="fa fa-reply me-1"></i>立即跳转</a>
                                <a href="javascript:void(0)" class="btn btn-sm btn-warning" onclick="stop()"><i class="fa fa-ban me-1"></i>暂停跳转</a>
                            </div>
                            <!--end::Link-->
                        </div>
                    </div>
				</div>

			</div>
			<footer class="footer">
				<div class="d-flex flex-center flex-column-auto p-5">
					<div class="d-flex align-items-center fs-6 text-gray-500">
						<a href="javascript:;" class="text-gray-500 text-hover-primary px-2">{:get_system_config('copyright')}</a>
					</div>
				</div>
			</footer>
		</div>
		<!--end::Root-->
		<!--begin::Javascript-->
		<!--begin::Global Javascript Bundle(mandatory for all pages)-->
		<!--begin::Global Javascript Bundle(mandatory for all pages)-->
		{:load_assets('base','js')}
		<script src="__ASSETS__/plugins/custom/particles/particles.js"></script>
        <script src="__ADMIN__/js/login/particles.app.js"></script>
		<!--end::Global Javascript Bundle-->
        <script>
            (function(){
                let wait  = document.getElementById('wait'),
                        href  = document.getElementById('href').href,
                        pop   = '{$Request.param._pop}'; //获取窗口索引
    
                let interval = setInterval(function(){
                    let time = --wait.innerHTML;
                    if(time <= 0) {
                        if (pop === '1' && parent.layer !== undefined) {
                            let index = parent.layer.getFrameIndex(window.name);
                            parent.layer.close(index);
                        } else {
                            location.href = href;
                        }
                        clearInterval(interval);
                    }
                }, 1000);
    
                // 禁止跳转
                window.stop = function (){
                    clearInterval(interval);
                }
            })();
        </script>
		<!--end::Javascript-->
	</body>
	<!--end::Body-->
</html>